package jps_s10996_s7175.result;

import jps_s10996_s7175.utils.IPrintable;
import edu.pjwstk.jps.result.IBooleanResult;

public class BooleanResult extends SimpleResult<Boolean> implements
		IBooleanResult, IPrintable {

	public BooleanResult(Boolean obj) {
		super(obj);
	}

	@Override
	public Boolean getValue() {
		return (obj);
	}

	@Override
	public String stringme() {
		return Boolean.toString(getValue());
	}

	@Override
	public String toString() {
		return Boolean.toString(getValue());
	}
	
	@Override
	public int compareTo(SingleResult o) {
		if ( o instanceof BooleanResult ) {
			return this.getValue().compareTo(((BooleanResult)o).getValue());
		} else {
			return -1;
		}
		
	}
}
